<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0075)http://register.573.com/register/wlsws_01.htm?c=na1&na1=2&from=117968&gid=2 -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>最隐私的游戏，边上没人才敢玩</title>
<link href="css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="validator.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.form.js"></script>
<script type="text/javascript" src="md5.js"></script>
<script language="javascript">
    function checkReiger()
    {
        var code = $("#code").val();
        if(code.length > 20 || code.length <3 || !(/^[a-z_][a-z_0-9]*$/i.test(code)))
        {
            alert("3-20个字符，必须以字母打头");
            return false;
        }
        var pwd = $("#password").val();
        if(!(/^[A-Za-z0-9_]{6,20}$/.test(pwd)))
        {
            alert("密码不合法");
            return false;
        }
        var repeat = $("#repeat").val();
        if(repeat != pwd)
        {
            alert("两次密码不一致");
            return false;
        }
        var vcode = $("#vcode").val();
        if(!(/^\d{4}$/i.test(vcode)))
        {
            alert("请输入正确的验证码");
            return false;
        }
        $("#password").val(hex_md5(pwd));
        return true;
    };

    function checkCode()
    {
        $("#submit").attr("disabled",true);
        var code = $("#code").val();
        if(code.length > 20 || code.length <3 || !(/^[a-z_][a-z_0-9]*$/i.test(code)))
        {
            $("#div_code").attr("className","warn");
            $("#em_code").html("3-20个字符，必须以字母打头");
            setTimeout('$("#code").focus()',50);
            return false;
        }
        $.post("/register/",{'op' : 'ckName', 'name' : code},function(data) {
            if(data == "1")
            {
                $("#div_code").attr("className","suc");
                $("#em_code").html(" ");
                $("#submit").attr("disabled",false);
            }
            else if(data == "-3")
            {
                $("#code").focus();
                $("#div_code").attr("className","warn");
                $("#em_code").html("用户名已被注册");
            }
            else
            {
                $("#code").focus();
                $("#div_code").attr("className","warn");
                $("#em_code").html("用户名禁止注册");
            }

        });
    } 
    function checkPwd(pwd)
    {
        if (pwd.match(/^[A-Za-z0-9_]{6,20}$/g))
        {
             $("#div_passport").attr("className","suc");
             $("#pwd").html("  ");
        }
        else
        {
             $("#div_passport").attr("className","warn");
             $("#pwd").html("6-20位");
        }
    }
    
    function checkRepeat(pwd)
    {
        if(pwd)
        {
            if (pwd == $("#password").val())
            {
                 $("#div_repeat").attr("className","suc");
                 $("#repeat_em").html("  ");
            }
            else
            {
                 $("#div_repeat").attr("className","warn");
                 $("#repeat_em").html("密码不一致");
            }
        }
        else
        {
            $("#div_repeat").attr("className","warn");
            $("#repeat_em").html("确认密码不能为空");
        }
    }
    
    function mysubmit()
    {
        $("#wait").show();
        $("#submitbt").hide();
        $("#myform").ajaxSubmit( { url : '../register_popwindow' + window.location.search.replace(/["&"|"="|"\?"]/g,"/") +'/',
                success : function(data) {
                    data = eval('('+data+')');
                    if(data['login'] == "1")
                    {
                        if(data['addscript'])
                    {
                        var head = document.getElementsByTagName("head")[0] || document.documentElement,
			scripts = document.createElement("script");
			scripts.type = "text/javascript";
			scripts.text = data['addscript'];
		        head.appendChild(scripts);
                    }
                        if(data['script'])
                        var t = data['script'].match(/https?:\/\/[^\"]*/g);
                        if(t)
                        {
                            for(var i=0; i< t.length;i++) show(t[i]);
                        }
                        $("#form1").hide();
                        $("#list1").show();
                        if(data['iframe'])
                        {
                            $("#ifm").html(data['iframe']);
                        }
                        if(data['code'])
                        {
                            $("#showcode").html("<strong>"+data['code']+"</strong>");
                        }
                    }
                    else
                    {
                        alert(data['notice']);
                        $("#repeat").val('');
                        $("#password").val('');
                    }
                    $("#wait").hide();
                    $("#submitbt").show();
                }
            });
       }
        function show(str) 
        {
                var elm = document.createElement("script");
                elm.type = "text/javascript";
                elm.src = str;
                document.getElementsByTagName('head')[0].appendChild(elm);
         }
         
    function getverifycode()
    {
        if($("#verifycode").css("display") == "none")
        {
            $("#verifycode").show();
            $("#verifycode").attr('src','../verifyCode.php');
            $("#vcode").val('');
        }
    }

</script>

</head>
<body ondragstart="return false" style="background:transparent;" marginwidth="0" marginheight="0">
<div id="wrap">
	<div id="area">
             <div class="main" id="tab1" style="display:none1;">
            <div class="form3" id="form1" style="display:none0;">
             <form name="Form1" id="myform" action="http://register.573.com/register_popwindow/" method="post" onsubmit="return false;">
                <p></p>
                <div id="div_code">
                    <label>帐　　号</label>
                    <input name="code" id="code" class="i ii" type="text" value="" onchange="this.value=this.value.replace(/\s*/g,&#39;&#39;);" onblur="return checkCode();">
                    <em id="em_code"><strong>*</strong>用户名为3~20位字母或数字组合</em>
                 </div>
                <div id="div_passport">
                    <label>密　　码</label>
                    <input name="password" id="password" class="i ii" type="password" value="" onblur="checkPwd(this.value);" maxlength="20">
                    <em id="pwd"><strong>*</strong>6~20位数字、字母、下划线</em>
                </div>
                <div id="div_repeat">
                    <label>确认密码</label>
                    <input name="repeat" id="repeat" class="i ii" type="password" onblur="checkRepeat(this.value);" maxlength="20">
                    <em id="repeat_em"><strong>*</strong>再次输入密码</em>
                </div>
                <div id="div_vcode">
                    <label>验证码</label>
                     <input name="vcode" id="vcode" datatype="Custom" regexp="^\d{4}$" msg="请输入正确的验证码" value="点击获取验证码" onfocus="getverifycode();" type="text" class="i ii">
                    <img class="yzm" style="display:none;" id="verifycode" src="" alt="验证码,看不清楚?请点击刷新验证码" onclick="this.src=&#39;../verifyCode.php?id=&#39;+Math.random();">
                </div>
                <div class="button" id="submitbt" style="display:none0;">

                    <input name="" type="submit" id="submit" value=" " class="b" onclick="checkReiger()&amp;&amp;mysubmit();return false;">
                </div>
                <div class="wait" style="text-align:center;color:#f00;display:none;" id="wait">
                    数据提交中，请稍候……
                    <img src="loading.gif">
                </div>
                </form>               
            </div>
            <div class="list" id="list1" style="display:none;">
                <p>
                    <span></span>
                 </p>
		
				<ul>
					<li><a href="http://www.573.com/joinGame/code/lsws1/" onclick="try{top.location.host;top.location.assign(&#39;http://www.573.com/server/code/lsws/&#39;);}catch(exp){top.location=&#39;http://www.573.com/server/code/lsws/&#39;;}" target="_blank">（1服）方天画戟<em>【新服】</em></a></li>
					<li class="login"><a href="http://www.573.com/joinGame/code/lsws1/" onclick="try{top.location.host;top.location.assign(&#39;http://www.573.com/server/code/lsws/&#39;);}catch(exp){top.location=&#39;http://www.573.com/server/code/lsws/&#39;;}" target="_blank">进入游戏</a></li>
				</ul>
             </div>
     </div>
    </div>
        <ul class="bg">
        <li><img src="pic_01.jpg"></li>
        <li><img src="pic_02.jpg"></li>
        <li><img src="pic_03.jpg"></li>
        <li><img src="pic_04.jpg"></li>
        <li><img src="pic_05.jpg"></li>
        <li><img src="pic_06.jpg"></li>
        <li><img src="pic_07.jpg"></li>
        <li><img src="pic_08.jpg"></li>
        <li><img src="pic_09.jpg"></li>
        <li><img src="pic_10.jpg"></li>
        <li><img src="pic_11.jpg"></li>
        <li><img src="pic_12.jpg"></li>
        <li><img src="pic_13.jpg"></li>
        <li><img src="pic_14.jpg"></li>
        <li><img src="pic_15.jpg"></li>
        <li><img src="pic_16.jpg"></li>
    </ul>
 <div class="swf">
 <object type="application/x-shockwave-flash" data="http://images.dsd333.cn/zqx16-JUI89hjk/swf.swf" width="1000" height="580">
	<param name="movie" value="http://images.dsd333.cn/zqx16-JUI89hjk/swf.swf">
            <param name="wmode" value="transparent">
           <param name="menu" value="false"> 
		</object>
       </div>
</div>
<script language="javascript">
 var _g =window.location.href.match(/.*\/(\w+)(\d+)\.htm\?from=(\d+)?(\&login)?/);
        var _s = 'http://register.573.com/statistics.php?from=' + _g[3];
        document.writeln("<div><iframe style='display:none' src="+_s+" frameborder='0' scrolling='No' allowtransparency='transparent' scroll='no' Ondragstart ='return false' id='frame1'></iframe></div>");
        if(_g[4] != null && _g[4] )
        {
            showReg(false);
        }
</script>

</body></html>